package com.xxb.test;

import com.xxb.dao.UserDao;
import com.xxb.entity.User;

import junit.framework.TestCase;

public class UserDaoTestCase extends TestCase{
	
	private UserDao dao;
	
	@Override
	protected void setUp() throws Exception {
		dao = new UserDao();
	}
	
	public void testSave(){
		User u = new User();
		u.setId(1);
		u.setUseremail("tom");
		u.setUserpwd("123");
		
		int rows = dao.save(u);
		assertEquals(1,rows);
	}
}
